function checkStatusLimit() {
			if(document.getElementsByName("status")[0].value != "" && document.getElementsByName("status")[0].value != document.getElementsByName("status")[0].defaultValue){
				if(document.getElementsByName("status")[0].value.length < 400){
					document.forms[0].submit();
				}else {
					alert("Status containing more than 400 words is not allowed");			
				}
			} else {
				alert("Empty status can't be updated");			
			}
		}	
		function setUserId(id) {
			if(confirm("Do you want to delete?")) {
				document.getElementsByName("statusId")[0].value = id;
				document.forms[1].submit();
			}
		}
		
		function setComment(id,comment) {
			if(document.getElementsByName(comment)[0].value!="" && document.getElementsByName(comment)[0].value != document.getElementsByName(comment)[0].defaultValue){
				if(document.getElementsByName(comment)[0].value.length < 400){
					document.getElementsByName("statusId")[0].value = id;
					document.getElementsByName("comment")[0].value = document.getElementsByName(comment)[0].value;
					document.forms[1].submit();
				}else {
					alert("Comment containing more than 400 words is not allowed");			
				}
			} else {
				alert("Empty comment can't be updated");			
			}
		}
	
		function setCommentId(commentId) {
			if(confirm("Do you want to delete?")) {
				document.getElementsByName("commentId")[0].value = commentId;
				document.forms[1].submit();
			}
			
		}
		
		
		function statusBlur()
		{
			var status=document.getElementByName("status")[0].value;
			if(status.trim()=="")
			{
				document.getElementByName("status")[0].value="Update Status";
				document.getElementByName("status")[0].style.color="#666666";
			} else {
				document.getElementByName("status")[0].style.color="#000000";
			}
		}
		
		function statusFocus()
		{	
			var status=document.getElementByName("status")[0].value;
			if(status=="Update Status")
			{
				document.getElementByName("status")[0].value="";
				document.getElementByName("status")[0].style.color="#000000";
			}
		}